{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from github import Github\n",
    "import re\n",
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "g = Github(\"username\", \"password\")\n",
    "pat = re.compile(r'[(](.*?)[)]', re.S)\n",
    "pl = re.compile(r'[.](.*?)[\\[]', re.S)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "文件名为:  lists.txt\n",
      "pytorch/text\n",
      "IBM/pytorch-seq2seq\n",
      "Sandeep42/anuvada\n",
      "pytorch/audio\n",
      "facebookresearch/loop\n",
      "facebookresearch/fairseq-py\n",
      "awni/speech\n",
      "OpenNMT/OpenNMT-py\n",
      "huggingface/neuralcoref\n",
      "NVIDIA/sentiment-discovery\n",
      "facebookresearch/MUSE\n",
      "lium-lst/nmtpytorch\n",
      "vincentherrmann/pytorch-wavenet\n",
      "soobinseo/Tacotron-pytorch\n",
      "allenai/allennlp\n",
      "PetrochukM/PyTorch-NLP\n",
      "outcastofmusic/quick-nlp\n",
      "mozilla/TTS\n",
      "facebookresearch/LASER\n",
      "pyannote/pyannote-audio\n",
      "Maluuba/gensen\n",
      "pytorch/translate\n",
      "espnet/espnet\n",
      "facebookresearch/pythia\n",
      "facebookresearch/UnsupervisedMT\n",
      "jsalt18-sentence-repl/jiant\n",
      "codertimo/BERT-pytorch\n",
      "facebookresearch/InferSent\n",
      "google/uis-rnn\n",
      "zalandoresearch/flair\n",
      "facebookresearch/pytext\n",
      "mindslab-ai/voicefilter\n",
      "kamalkraj/BERT-NER\n",
      "feedly/transfer-nlp\n",
      "asyml/texar-pytorch\n",
      "mravanelli/pytorch-kaldi\n",
      "pytorch/vision\n",
      "tymokvo/pt-styletransfer\n",
      "thnkim/OpenFacePytorch\n",
      "felixgwu/img_classification_pk_pytorch\n",
      "facebookresearch/SparseConvNet\n",
      "automan000/Convolution_LSTM_pytorch\n",
      "1adrianb/face-alignment\n",
      "ZijunDeng/pytorch-semantic-segmentation\n",
      "longcw/RoIAlign.pytorch\n",
      "creafz/pytorch-cnn-finetune\n",
      "ignacio-rocco/detectorch\n",
      "mdbloice/Augmentor\n",
      "jonas-koehler/s2cnn\n",
      "CVBox/PyTorchCV\n",
      "facebookresearch/maskrcnn-benchmark\n",
      "osmr/imgclsmob\n",
      "perone/medicaltorch\n",
      "albu/albumentations\n",
      "arraiyopensource/kornia\n",
      "stepelu/ptstat\n",
      "uber/pyro\n",
      "probtorch/probtorch\n",
      "drckf/paysage\n",
      "ctallec/pyvarinf\n",
      "probprog/pyprob\n",
      "spring-epfl/mia\n",
      "akanimax/pro_gan_pytorch\n",
      "pytorch/botorch\n",
      "mrdrozdov/pytorch-extras\n",
      "szagoruyko/functional-zoo\n",
      "ncullen93/torchsample\n",
      "deepcraft/torchcraft-py\n",
      "ramon-oliveira/aorun\n",
      "oval-group/logger\n",
      "iamaziz/PyTorch-docset\n",
      "clcarwin/convert_torch_to_pytorch\n",
      "Cadene/pretrained-models.pytorch\n",
      "locuslab/pytorch_fft\n",
      "fanq15/caffe_to_torch_to_pytorch\n",
      "sniklaus/pytorch-extension\n",
      "lanpa/tensorboard-pytorch\n",
      "jrg365/gpytorch\n",
      "maciejkula/spotlight\n",
      "awentzonline/pytorch-cns\n",
      "szagoruyko/pyinn\n",
      "nasimrahaman/inferno\n",
      "henryre/pytorch-fitmodule\n",
      "dnouri/inferno\n",
      "marvis/pytorch-caffe-darknet-convert\n",
      "longcw/pytorch2caffe\n",
      "nearai/pytorch-tools\n",
      "taolei87/sru\n",
      "prisma-ai/torch2coreml\n",
      "zhanghang1989/PyTorch-Encoding\n",
      "ryanleary/pytorch-ctc\n",
      "t-vi/candlegp\n",
      "loudinthecloud/dpwa\n",
      "koz4k/dni-pytorch\n",
      "dnouri/skorch\n",
      "pytorch/ignite\n",
      "glample/Arnold\n",
      "albanie/pytorch-mcn\n",
      "chenyuntc/simple-faster-rcnn-pytorch\n",
      "DL-IT/generative_zoo\n",
      "szagoruyko/pytorchviz\n",
      "cogitare-ai/cogitare\n",
      "dmarnerides/pydlt\n",
      "wohlert/semi-supervised-pytorch\n",
      "rusty1s/pytorch_cluster\n",
      "aditya-khant/neural-assembly-compiler\n",
      "vadimkantorov/caffemodel2pytorch\n",
      "pytorch/extension-cpp\n",
      "GRAAL-Research/pytoune\n",
      "dusty-nv/jetson-reinforcement\n",
      "salesforce/matchbox\n",
      "josipd/torch-two-sample\n",
      "sksq96/pytorch-summary\n",
      "BelBES/mpl.pytorch\n",
      "YosefLab/scVI-dev\n",
      "NVIDIA/apex\n",
      "pytorch/ELF\n",
      "EKami/Torchlite\n",
      "Schlumberger/joint-vae\n",
      "kengz/SLM-Lab\n",
      "Hananel-Hazan/bindsnet\n",
      "akanimax/pro_gan_pytorch\n",
      "rusty1s/pytorch_geometric\n",
      "knighton/torchplus\n",
      "zuoxingdong/lagom\n",
      "ecs-vlc/torchbearer\n",
      "tristandeleu/pytorch-maml-rl\n",
      "bharathgs/NALU\n",
      "PIQuIL/QuCumber\n",
      "MagNet-DL/magnet\n",
      "jbohnslav/opencv_transforms\n",
      "fastai/fastai\n",
      "RobotLocomotion/pytorch-dense-correspondence\n",
      "richzhang/colorization-pytorch\n",
      "cms-flash/beauty-net\n",
      "Mariewelt/OpenChem\n",
      "aiqm/torchani\n",
      "hjmshi/PyTorch-LBFGS\n",
      "cornellius-gp/gpytorch\n",
      "mariogeiger/hessian\n",
      "MillionIntegrals/vel\n",
      "msamogh/nonechucks\n",
      "Swall0w/torchstat\n",
      "pytorch/QNNPACK\n",
      "rtqichen/torchdiffeq\n",
      "BachiLi/redner\n",
      "masa-su/pixyz\n",
      "perone/euclidesdb\n",
      "nerox8664/pytorch2keras\n",
      "domainadaptation/salad\n",
      "Erotemic/netharn\n",
      "dmlc/dgl\n",
      "CSAILVision/gandissect\n",
      "justusschock/delira\n",
      "AIRLab-POLIMI/mushroom\n",
      "thuml/Xlearn\n",
      "ferrine/geoopt\n",
      "unit8co/vegans\n",
      "arraiyopensource/torchgeometry\n",
      "BorealisAI/advertorch\n",
      "Luolc/AdaBound\n",
      "mblondel/fenchel-young-losses\n",
      "Lyken17/pytorch-OpCounter\n",
      "kaihsin/Tor10\n",
      "catalyst-team/catalyst\n",
      "facebook/Ax\n",
      "achaiah/pywick\n",
      "kakaobrain/torchgpipe\n",
      "pytorch/hub\n",
      "williamFalcon/pytorch-lightning\n",
      "kaihsin/Tor10\n",
      "microsoft/tensorwatch\n",
      "fancompute/wavetorch\n",
      "ag14774/diffdist\n",
      "awwong1/torchprof\n",
      "oxfordcontrol/osqpth\n",
      "mctorch/mctorch\n",
      "noahgolmant/pytorch-hessian-eigenthings\n",
      "StanfordVL/MinkowskiEngine\n",
      "Omegastick/pytorch-cpp-rl\n",
      "BloodAxe/pytorch-toolbelt\n",
      "Fonbet/argus-tensor-stream\n",
      "hal3/macarico\n",
      "spro/practical-pytorch\n",
      "yunjey/pytorch-tutorial\n",
      "keon/pytorch-exercises\n",
      "pytorch/tutorials\n",
      "pytorch/examples\n",
      "napsternxg/pytorch-practice\n",
      "vinhkhuc/PyTorch-Mini-Tutorials\n",
      "xiayandi/Pytorch_text_classification\n",
      "desimone/pytorch-cat-vs-dogs\n",
      "eladhoffer/convNet.pytorch\n",
      "mailmahee/pytorch-generative-adversarial-networks\n",
      "amdegroot/pytorch-containers\n",
      "cemoody/topicsne\n",
      "fducau/AAE_pytorch\n",
      "GunhoChoi/Kind_PyTorch_Tutorial\n",
      "justdark/pytorch-poetry-gen\n",
      "JamesChuanggg/pytorch-REINFORCE\n",
      "MorvanZhou/PyTorch-Tutorial\n",
      "joansj/pytorch-intro\n",
      "bearpaw/pytorch-classification\n",
      "hardmaru/pytorch_notebooks\n",
      "soravux/pytorch_tutorial\n",
      "Spandan-Madan/Pytorch_fine_tuning_Tutorial\n",
      "Kyubyong/pytorch_exercises\n",
      "soumith/traffic-sign-detection-homework\n",
      "Js-Mim/mss_pytorch\n",
      "DSKSD/DeepNLP-models-Pytorch\n",
      "mila-udem/welcome_tutorials\n",
      "moskomule/pytorch.rl.learning\n",
      "keon/seq2seq\n",
      "JeanKossaifi/tensorly-notebooks\n",
      "jpeg729/pytorch_bits\n",
      "sanyam5/skip-thoughts\n",
      "xiadingZ/video-caption-pytorch\n",
      "higgsfield/Capsule-Network-Tutorial\n",
      "SherlockLiao/code-of-learn-deep-learning-with-pytorch\n",
      "higgsfield/RL-Adventure\n",
      "hpcgarage/accelerated_dl_pytorch\n",
      "higgsfield/RL-Adventure-2\n",
      "wkentaro/pytorch-for-numpy-users\n",
      "Kaixhin/grokking-pytorch\n",
      "Atcold/PyTorch-Deep-Learning-Minicourse\n",
      "utkuozbulak/pytorch-custom-dataset-examples\n",
      "furkanu/deeplearning.ai-pytorch\n",
      "tobiascz/MNIST_Pytorch_python_and_capi\n",
      "ne7ermore/torch_light\n",
      "dribnet/portrain-gan\n",
      "omarsar/mri-analysis-pytorch\n",
      "davidcpage/cifar10-fast\n",
      "bentrevett/pytorch-sentiment-analysis\n",
      "rwightman/pytorch-image-models\n",
      "BIGBALLON/CIFAR-ZOO\n",
      "dsgiitr/d2l-pytorch\n",
      "stared/thinking-in-tensors-writing-in-pytorch\n",
      "lemonhu/NER-BERT-pytorch\n",
      "dougsouza/pytorch-sync-batchnorm-example\n",
      "neuralix/google_evolution\n",
      "edouardoyallon/pyscatwave\n",
      "edouardoyallon/scalingscattering\n",
      "episodeyang/deep-auto-punctuation\n",
      "tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation\n",
      "onlytailei/PyTorch-value-iteration-networks\n",
      "analvikingur/pytorch_Highway\n",
      "analvikingur/pytorch_NEG_loss\n",
      "analvikingur/pytorch_RVAE\n",
      "analvikingur/pytorch_TDNN\n",
      "moskomule/eve.pytorch\n",
      "locuslab/e2e-model-learning\n",
      "mrzhu-cool/pix2pix-pytorch\n",
      "amdegroot/ssd.pytorch\n",
      "carpedm20/DiscoGAN-pytorch\n",
      "SKTBrain/DiscoGAN\n",
      "atgambardella/pytorch-es\n",
      "bodokaiser/piwise\n",
      "transedward/pytorch-dqn\n",
      "ruotianluo/neuraltalk2.pytorch\n",
      "mattmacy/vnet.pytorch\n",
      "wkentaro/pytorch-fcn\n",
      "xternalz/WideResNet-pytorch\n",
      "c0nn3r/pytorch_highway_networks\n",
      "ypxie/pytorch-NeuCom\n",
      "eladhoffer/captionGen\n",
      "jayleicn/animeGAN\n",
      "Shawn1993/cnn-text-classification-pytorch\n",
      "SeanNaren/deepspeech.pytorch\n",
      "MaximumEntropy/Seq2Seq-PyTorch\n",
      "rarilurelo/pytorch_a3c\n",
      "bamos/densenet.pytorch\n",
      "alykhantejani/nninit\n",
      "longcw/faster_rcnn_pytorch\n",
      "akolishchak/doom-net-pytorch\n",
      "ClementPinard/FlowNetPytorch\n",
      "gsp-27/pytorch_Squeezenet\n",
      "martinarjovsky/WassersteinGAN\n",
      "locuslab/optnet\n",
      "locuslab/qpth\n",
      "ikostrikov/pytorch-naf\n",
      "ikostrikov/pytorch-meta-optimizer\n",
      "darkstar112358/fast-neural-style\n",
      "leongatys/PytorchNeuralStyleTransfer\n",
      "bengxy/FastNeuralStyle\n",
      "alexis-jacq/Pytorch-Tutorials\n",
      "zuoxingdong/VIN_PyTorch_Visdom\n",
      "longcw/yolo2-pytorch\n",
      "szagoruyko/attention-transfer\n",
      "potterhsu/SVHNClassifier-PyTorch\n",
      "oeway/pytorch-deform-conv\n",
      "carpedm20/BEGAN-pytorch\n",
      "dasguptar/treelstm.pytorch\n",
      "DmitryUlyanov/AGE\n",
      "prlz77/ResNeXt.pytorch\n",
      "jingweiz/pytorch-rl\n",
      "sujithv28/Deep-Leafsnap\n",
      "junyanz/pytorch-CycleGAN-and-pix2pix\n",
      "onlytailei/A3C-PyTorch\n",
      "kentsommer/pytorch-value-iteration-networks\n",
      "zhanghang1989/PyTorch-Style-Transfer\n",
      "isht7/pytorch-deeplab-resnet\n",
      "fxia22/pointnet.pytorch\n",
      "aaron-xichen/pytorch-playground\n",
      "jingweiz/pytorch-dnc\n",
      "jinfagang/pytorch_image_classifier\n",
      "yunjey/mnist-svhn-transfer\n",
      "marvis/pytorch-yolo2\n",
      "andrewliao11/dni.pytorch\n",
      "caogang/wgan-gp\n",
      "spro/pytorch-seq2seq-intent-parsing\n",
      "demelin/pyTorch_NCE\n",
      "cxhernandez/molencoder\n",
      "stormraiser/GAN-weight-norm\n",
      "rachtsingh/lgamma\n",
      "eladhoffer/bigBatch\n",
      "dgriff777/rl_a3c_pytorch\n",
      "ahirner/pytorch-retraining\n",
      "priba/nmp_qc\n",
      "jacobgil/pytorch-grad-cam\n",
      "mjacar/pytorch-trpo\n",
      "jacobgil/pytorch-explain-black-box\n",
      "jmtomczak/vae_vpflows\n",
      "kimhc6028/relational-networks\n",
      "Cadene/vqa.pytorch\n",
      "facebookresearch/end-to-end-negotiator\n",
      "ShiyuLiang/odin-pytorch\n",
      "ajbrock/FreezeOut\n",
      "jakezhaojb/ARAE\n",
      "kimhc6028/forward-thinking-pytorch\n",
      "BoyuanJiang/context_encoder_pytorch\n",
      "jadore801120/attention-is-all-you-need-pytorch\n",
      "thnkim/OpenFacePytorch\n",
      "pemami4911/neural-combinatorial-rl-pytorch\n",
      "mjacar/pytorch-nec\n",
      "eladhoffer/seq2seq.pytorch\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "alexis-jacq/Pytorch-Sketch-RNN\n",
      "jacobgil/pytorch-pruning\n",
      "hitvoice/DrQA\n",
      "JianGoForIt/YellowFin_Pytorch\n",
      "deepsound-project/samplernn-pytorch\n",
      "tymokvo/AEGeAN\n",
      "twtygqyy/pytorch-SRResNet\n",
      "fartashf/vsepp\n",
      "alexis-jacq/Pytorch-DPPO\n",
      "mingyuliutw/UNIT\n",
      "gpleiss/efficient_densenet_pytorch\n",
      "yjxiong/tsn-pytorch\n",
      "ajbrock/SMASH\n",
      "kuangliu/pytorch-retinanet\n",
      "aosokin/biogans\n",
      " woozzu/dong_iccv_2017\n",
      "jmhessel/fmpytorch\n",
      "ZhouYanzhao/ORN\n",
      "katerakelly/pytorch-maml\n",
      "znxlwm/pytorch-generative-model-collections\n",
      "markdtw/vqa-winner-cvprw-2017\n",
      "r9y9/tacotron_pytorch\n",
      "Lextal/pspnet-pytorch\n",
      "LiyuanLucasLiu/LM-LSTM-CRF\n",
      "1adrianb/face-alignment\n",
      "ClementPinard/DepthNet\n",
      "thstkdgus35/EDSR-PyTorch\n",
      "ethanluoyc/e2c-pytorch\n",
      "kenshohara/3D-ResNets-PyTorch\n",
      "khanhptnk/bandit-nmt\n",
      "ikostrikov/pytorch-a2c-ppo-acktr\n",
      "baldassarreFe/zalando-pytorch\n",
      "clcarwin/sphereface_pytorch\n",
      "floringogianu/categorical-dqn\n",
      "loudinthecloud/pytorch-ntm\n",
      "felixgwu/mask_rcnn_pytorch\n",
      "xbresson/graph_convnets_pytorch\n",
      "ruotianluo/pytorch-faster-rcnn\n",
      "huggingface/torchMoji\n",
      "hangzhaomit/semantic-segmentation-pytorch\n",
      "salesforce/pytorch-qrnn\n",
      "theeluwin/pytorch-sgns\n",
      "ClementPinard/SfmLearner-Pytorch\n",
      "1zb/deformable-convolution-pytorch\n",
      "fanglanting/skip-gram-pytorch\n",
      "hanzhanggit/StackGAN-v2\n",
      "ruotianluo/self-critical.pytorch\n",
      "tkipf/pygcn\n",
      "ixaxaar/pytorch-dnc\n",
      "ptrblck/prog_gans_pytorch_inference\n",
      "timomernick/pytorch-capsule\n",
      "dyhan0920/PyramidNet-PyTorch\n",
      "gram-ai/radio-transformer-networks\n",
      "castorini/honk\n",
      "SSARCandy/DeepCORAL\n",
      "bearpaw/pytorch-pose\n",
      "karandesai-96/lang-emerge-parlai\n",
      "Kaixhin/Rainbow\n",
      "gdlg/pytorch_compact_bilinear_pooling\n",
      "DeepInsight-PCALab/CompactBilinearPooling-Pytorch\n",
      "gitabcworld/FewShotLearning\n",
      "jklj077/meProp\n",
      "clcarwin/SFD_pytorch\n",
      "facebookresearch/GradientEpisodicMemory\n",
      "KupynOrest/DeblurGAN\n",
      "yunjey/StarGAN\n",
      "adambielski/CapsNet-pytorch\n",
      "ShichenLiu/CondenseNet\n",
      "DmitryUlyanov/deep-image-prior\n",
      "natanielruiz/deep-head-pose\n",
      "zhunzhong07/Random-Erasing\n",
      "facebookresearch/FaderNetworks\n",
      "NVIDIA/flownet2-pytorch\n",
      "NVIDIA/pix2pixHD\n",
      "pkdn/pytorch-smoothgrad\n",
      "c0nn3r/RetinaNet\n",
      "jwyang/faster-rcnn.pytorch\n",
      "leehomyc/mixup_pytorch\n",
      "mapillary/inplace_abn\n",
      "xingyizhou/pytorch-pose-hg-3d\n",
      "HarshTrivedi/nmn-pytorch\n",
      "kefirski/bytenet\n",
      "hengyuan-hu/bottom-up-attention-vqa\n",
      "ruiminshen/yolo2-pytorch\n",
      "Wizaron/reseg-pytorch\n",
      "Wizaron/binary-stochastic-neurons\n",
      "DavexPro/pytorch-pose-estimation\n",
      "higgsfield/interaction_network_pytorch\n",
      "wlwkgus/NoisyNaturalGradient\n",
      "moskomule/ewc.pytorch\n",
      "jacobgil/pytorch-zssr\n",
      "atiyo/deep_image_prior\n",
      "leviswind/pytorch-transformer\n",
      "devendrachaplot/DeepRL-Grounding\n",
      "Wizaron/deep-forecast-pytorch\n",
      "utiasSTARS/cat-net\n",
      "tneumann/minimal_glo\n",
      "dragen1860/LearningToCompare-Pytorch\n",
      "facebookresearch/poincare-embeddings\n",
      "Hessian-vector product version\n",
      "JamesChuanggg/ggnn.pytorch\n",
      "Mrgemy95/visual-interaction-networks-pytorch\n",
      "jhayes14/adversarial-patch\n",
      "orobix/Prototypical-Networks-for-Few-shot-Learning-PyTorch\n",
      "orobix/Visual-Feature-Attribution-Using-Wasserstein-GANs-Pytorch\n",
      "Blade6570/PhotographicImageSynthesiswithCascadedRefinementNetworks-Pytorch\n",
      "carpedm20/ENAS-pytorch\n",
      "kentsyx/Neural-IMage-Assessment\n",
      "tfrerix/proxprop\n",
      "NVIDIA/FastPhotoStyle\n",
      "Ben-Louis/Deep-Image-Analogy-PyTorch\n",
      "layumi/Person_reID_baseline_pytorch\n",
      "zalandoresearch/pt-dilate-rnn\n",
      "jhjacobsen/pytorch-i-revnet\n",
      "Orcuslc/OrthNet\n",
      "jt827859032/DRRN-pytorch\n",
      "moskomule/shampoo.pytorch\n",
      "truskovskiyk/nima.pytorch\n",
      "locuslab/TCN\n",
      "shahsohil/DCC\n",
      "arunmallya/packnet\n",
      "github-pengge/PyTorch-progressive_growing_of_gans\n",
      "salesforce/nonauto-nmt\n",
      "eriklindernoren/PyTorch-GAN\n",
      "tomrunia/PyTorchWavelets\n",
      "karpathy/pytorch-made\n",
      "emited/VariationalRecurrentNeuralNetwork\n",
      "emited/flow\n",
      "r9y9/deepvoice3_pytorch\n",
      "elanmart/psmm\n",
      "NVIDIA/tacotron2\n",
      "rahulkidambi/AccSGD\n",
      "hengruo/QANet-pytorch\n",
      "TimDettmers/ConvE\n",
      "kaushalshetty/Structured-Self-Attention\n",
      "williamleif/graphsage-simple\n",
      "roytseng-tw/Detectron.pytorch\n",
      "irhumshafkat/R2Plus1D-PyTorch\n",
      "viking-sudo-rm/StackNN\n",
      "facebookresearch/translagent\n",
      "jnhwkim/ban-vqa\n",
      "huggingface/pytorch-openai-transformer-lm\n",
      "akanimax/T2F\n",
      "mseitzer/pytorch-fid\n",
      "jmtomczak/vae_vpflows\n",
      "mkocabas/CoordConv-pytorch\n",
      "xternalz/SDPoint\n",
      "wxywhu/SRDenseNet-pytorch\n",
      "LMescheder/GAN_stability\n",
      "wannabeOG/Mask-RCNN\n",
      "chaoyuaw/pytorch-coviar\n",
      "chenxi116/PNASNet.pytorch\n",
      "kevinzakka/NALU-pytorch\n",
      "alexis-jacq/LOLA_DiCE\n",
      "wohlert/generative-query-network-pytorch\n",
      "wmvanvliet/pytorch_hmax\n",
      "yunlongdong/FCN-pytorch-easiest\n",
      "awni/transducer\n",
      "artix41/AVO-pytorch\n",
      "huguyuehuhu/HCN-pytorch\n",
      "szagoruyko/binary-wide-resnet\n",
      "arunmallya/piggyback\n",
      "NVIDIA/vid2vid\n",
      "cranmer/poisson-convolution-sum\n",
      "davidmascharka/tbd-nets\n",
      "elbayadm/attn2d\n",
      "ultralytics/yolov3\n",
      "duc0/deep-dream-in-pytorch\n",
      "ikostrikov/pytorch-flows\n",
      "ars-ashuha/quantile-regression-dqn-pytorch\n",
      "L0SG/relational-rnn-pytorch\n",
      "scaelles/DEXTR-PyTorch\n",
      "rdspring1/PyTorch_GBW_LM\n",
      "Stonesjtu/Pytorch-NCE\n",
      "shayneobrien/generative-models\n",
      "andreasveit/convnet-aig\n",
      "TianhongDai/integrated-gradient-pytorch\n",
      "Alexander-H-Liu/MalConv-Pytorch\n",
      "locuslab/trellisnet\n",
      "minqi/learning-to-communicate-pytorch\n",
      "michaelklachko/pnn.pytorch\n",
      "rainofmine/Face_Attention_Network\n",
      "NVIDIA/waveglow\n",
      "facebookresearch/deepfloat\n",
      "subeeshvasu/2018_subeesh_epsr_eccvw\n",
      "ksw0306/ClariNet\n",
      "huggingface/pytorch-pretrained-BERT\n",
      "npuichigo/waveglow\n",
      "cleardusk/3DDFA\n",
      "tomgoldstein/loss-landscape\n",
      "zalandoresearch/famos\n",
      "anuragranj/back2future.pytorch\n",
      "mozilla/FFTNet\n",
      "zisianw/FaceBoxes.PyTorch\n",
      "kimiyoung/transformer-xl\n",
      "jalexvig/associative_compression_networks\n",
      "jolibrain/fluidnet_cxx\n",
      "p-christ/Deep-Reinforcement-Learning-Algorithms-with-PyTorch\n",
      "ericsun99/Shufflenet-v2-Pytorch\n",
      "benedekrozemberczki/GraphWaveletNeuralNetwork\n",
      "benedekrozemberczki/AttentionWalk\n",
      "benedekrozemberczki/SGCN\n",
      "benedekrozemberczki/SINE\n",
      "benedekrozemberczki/GAM\n",
      "ProGamerGov/neural-style-pt\n",
      "ibalazevic/TuckER\n",
      "BayesWatch/pytorch-prunes\n",
      "benedekrozemberczki/SimGNN\n",
      "ahmedbesbes/character-based-cnn\n",
      "facebookresearch/XLM\n",
      "eth-sri/diffai\n",
      "benedekrozemberczki/APPNP\n",
      "benedekrozemberczki/MixHop-and-N-GCN\n",
      "graykode/gpt-2-Pytorch\n",
      "benedekrozemberczki/Splitter\n",
      "benedekrozemberczki/CapsGNN\n",
      "ajbrock/BigGAN-PyTorch\n",
      "mhubii/ppo_pytorch_cpp\n",
      "seungwonpark/RandWireNN\n",
      "joel-huang/zeroshot-capsnet-pytorch\n",
      "benedekrozemberczki/SEAL-CI\n",
      "benedekrozemberczki/MixHop-and-N-GCN\n",
      "Lotayou/densebody_pytorch\n",
      "mindslab-ai/voicefilter\n",
      "NVIDIA/semantic-segmentation\n",
      "benedekrozemberczki/ClusterGCN\n",
      "NVlabs/DG-Net\n",
      "baidu-research/NCRF\n",
      "ducha-aiki/pytorch-sift\n",
      "mateuszbuda/brain-segmentation-pytorch\n",
      "rosinality/glow-pytorch\n",
      "zsef123/EfficientNets-PyTorch\n",
      "nv-tlabs/STEAL\n",
      "alecwangcq/EigenDamage-Pytorch\n",
      "ruidan/Aspect-level-sentiment\n",
      "nyukat/breast_cancer_classifier\n",
      "AaltoVision/DGC-Net\n",
      "ritchieng/the-incredible-pytorch\n",
      "wiseodd/generative-models\n",
      "https://hub.docker.com/r/escong/pytorch-notebook/\n",
      "kendricktan/drawlikebobross\n",
      "t-vi/pytorch-tvmisc\n",
      "andrewliao11/pytorch-a3c-mujoco\n",
      "jinfagang/pytorch_chatbot\n",
      "Kaixhin/malmo-challenge\n",
      "jtoy/sketchnet\n",
      "QuantScientist/Deep-Learning-Boot-Camp\n",
      "mratsim/Amazon_Forest_Computer_Vision\n",
      "junxiaosong/AlphaZero_Gomoku\n",
      "youansheng/pytorch-cv\n",
      "KaiyangZhou/deep-person-reid\n",
      "victoresque/pytorch-template\n",
      "https://www.packtpub.com/big-data-and-business-intelligence/deep-learning-pytorch\n",
      "jalola/compare-tensorflow-pytorch\n",
      "hasktorch/hasktorch\n",
      "fragcolor-xyz/nimtorch\n",
      "John-Ellis/derplearning\n",
      "tugstugi/pytorch-saltnet\n",
      "peterjc123/pytorch-scripts\n",
      "ptrblck/pytorch_misc\n",
      "arnas/awesome-pytorch-scholarship\n",
      "mmirman/MentisOculi\n",
      "karanchahal/DoodleMaster\n",
      "LaurentMazare/ocaml-torch\n",
      "pytorch/extension-script\n",
      "zccyman/pytorch-inference\n",
      "Wizaron/pytorch-cpp-inference\n",
      "LaurentMazare/tch-rs\n",
      "interesaaat/TorchSharp\n"
     ]
    }
   ],
   "source": [
    "fin = open(\"lists.txt\", \"r+\")\n",
    "print (\"文件名为: \", fin.name)\n",
    "\n",
    "fout = open(\"result.txt\", \"w+\")\n",
    "\n",
    "line = fin.readline()               \n",
    "while line:   \n",
    "    if \"https://github.com/\" in line:\n",
    "        stars_str = re.findall(pl, line)[0]\n",
    "        repo_name = re.findall(pat, line)[0].replace(\"https://github.com/\", \"\")\n",
    "        print(repo_name)\n",
    "        stars = \"\"\n",
    "        try: \n",
    "            repo = g.get_repo(repo_name)\n",
    "            time.sleep(1)\n",
    "            star_count = repo.stargazers_count\n",
    "            if star_count < 1000:\n",
    "                stars = \"1000-\"\n",
    "            else:\n",
    "                stars = str(star_count - star_count%100) + \"+\"\n",
    "        except Exception:\n",
    "            stars = \"null\"\n",
    "        line = line.replace(stars_str, \" <kbd>{}</kbd> \".format(stars), 1)\n",
    "#     print(line)\n",
    "        \n",
    "    fout.write(line)\n",
    "    line = fin.readline()   \n",
    "    \n",
    "fout.close()\n",
    "fin.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "# try: \n",
    "#     repo = g.get_repo(\"YosefLab/scVI-dev\")\n",
    "#     print(repo.stargazers_count)\n",
    "# except Exception:\n",
    "#     print(\"null\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
